package se480.tracker.processor;

import java.util.ArrayList;
import java.util.Map;

import se480.tracker.tracker.Location;
import se480.tracker.tracker.Tracker;

/**
 * Represents an Container in which the Tracking System will
 * run.
 * 
 * @author mmichalak
 *
 */
public class Processor {

	String id;
	Tracker trackerA;
	Tracker trackerB;

	Map<String, ArrayList<Location>> dataStore = null;
	
	
	public Processor() {
		super();
	}
	
	public Processor(String id) {
		super();
		this.id = id;
	}
	
	
	public Tracker getTrackerA() {
		return trackerA;
	}
	public void setTrackerA(Tracker trackerA) {
		this.trackerA = trackerA;
		this.trackerA.setDataStore(dataStore);
	}
	public Tracker getTrackerB() {
		return trackerB;
	}
	public void setTrackerB(Tracker trackerB) {
		this.trackerB = trackerB;
		this.trackerB.setDataStore(dataStore);
	}
	public Map<String, ArrayList<Location>> getDataStore() {
		return dataStore;
	}
	public void setDataStore(Map<String, ArrayList<Location>> dataStore) {
		this.dataStore = dataStore;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
}
